<script setup>
  import { ref } from 'vue'
</script>

<template>
  <view class="header">
  	<view class="container">
  		<image src="@/static/images/logo.png" mode="aspectFill" class="img"></image>
		<text>ecokey交流社区</text>
		<u-icon name="plus" color="#101010" size="70"></u-icon>
  	</view>
	<view class="search">
		<input type="text" placeholder="搜索您感兴趣的圈子或话题" class="search-input" />
	</view>
  </view>
</template>

<style scoped lang="scss">
	.header{
		.container{
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 0 8rpx;
			box-sizing: border-box;
			// height: 100rpx;
			.img{
				width: 140rpx;
				height: 140rpx;
				
			}
			text{
				font-size: 56rpx;
				font-weight: bold;
				// line-height: 140rpx;
				flex: 1;
			}
		}
		.search{
			margin: 10rpx 0;
			padding: 0 30rpx;
			.search-input{
				background: url('@/static/icons/search.png') no-repeat 20rpx 10rpx;
				// padding-left: 20rpx;
				padding-right: 150rpx;
				border-radius: 40rpx;
				background-size: 48rpx 48rpx;
				box-sizing: border-box;
				width: 100%;
				height: 80rpx;
				border-radius: 40rpx;
				background-color: #f5f5f5;
				text-align: center;
				font-size: 30rpx;
				color: #999999;
				line-height: 80rpx;
			}
		}
	}
</style>